package com.vedana.bankmobile.gwtrpc;

import java.util.List;

import com.google.gwt.user.server.rpc.RemoteServiceServlet;
import com.vedana.bankmobile.client.BankMobileRpcService;
import com.vedana.bankmobile.services.BankMobileServiceImpl;
import com.vedana.bankmobile.services.BankMobileService;
import com.vedana.bankmobile.shared.Operation;

/**
 * BankMobile service : GWT RPC adapter.
 * 
 * @author Didier MOISE
 *
 */
public class BankMobileRpcServiceImpl extends RemoteServiceServlet implements BankMobileRpcService {

	private static final long serialVersionUID = -67169505546605420L;

	/** Generic service */
	private BankMobileService service = new BankMobileServiceImpl();

	@Override
	public List<Operation> getAllOperations(long accountId) {
		return service.getAllOperations(accountId);
	}

	@Override
	public List<Operation> getRangeOfOperations(long accountId, int start, int length) {
		return service.getRangeOfOperations(accountId, start, length);
	}
}
